SOURCES = $(wildcard *.cpp)
OBJS=$(SOURCES:.cpp=.o)

CC=g++
FLAGS=-g -Wall -D DEBUG
INCLUDES=-I.
TARGET=libcore.a

$(TARGET):$(OBJS)
	ar -cru $@ $(OBJS)
	ranlib $@

%.o:%.cpp
	$(CC) $(FLAGS) $(INCLUDES) -c $< -o $@

.PHONY:clean
clean:
	rm -rf $(OBJS) $(TARGET)

